import exterface.MyInterface;

/**
 * @ClassName: Java8
 * @Author: 王延
 * @Date: 2019/7/18 15:45
 * @Description :
 */
public class Java8 implements MyInterface {
    /**
     * 实现抽象
     */
    @Override
    public void fuck() {
        System.out.println("just fuck it");
    }

    /**
     * 实现默认(覆盖默认)
     */
    @Override
    public void sayHello() {
        System.out.println("fuck the world");
    }

    public static void main(String[] args) {
        MyInterface java8 = new Java8();
        //抽象
        java8.fuck();
        //默认
        java8.sayHello();
        //静态
        MyInterface.play();

    }
}
